package bancosys.tec.persist.base.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import jmine.tec.persist.annotation.Alias;

import org.hibernate.annotations.Filter;
import org.hibernate.annotations.Filters;
import org.hibernate.annotations.Type;

import bancosys.tec.persist.bussobj.AuthPersistableBusinessObject;
import bancosys.tec.persist.span.SpanAwareBean;
import bancosys.tec.utils.date.Date;

/**
 * @created Feb 15, 2007
 * @author Gustavo Almeida
 */
@Entity
@Filters({ @Filter(name = "authFilter", condition = "auth = :auth") })
@Table(name = "vigencia_dummy")
@Alias(value = "VIGDUM")
public class VigenciaDummy extends AuthPersistableBusinessObject implements SpanAwareBean {
    private Long id;

    private Date dataInicio;

    private Date dataFim;

    private String nome;

    /**
     * @return Returns the id.
     */
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Long getId() {
        return this.id;
    }

    /**
     * Define o id.
     * 
     * @param id O id a ser definido.
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return Returns the nome.
     */
    @Column(name = "DT_INI")
    @Type(type = "bancosys.tec.persist.hibernate.type.DateType")
    public Date getDataInicio() {
        return this.dataInicio;
    }

    /**
     * Define o dataInicio.
     * 
     * @param dataInicio O dataInicio a ser definido.
     */
    public void setDataInicio(Date dataInicio) {
        this.dataInicio = dataInicio;
    }

    /**
     * @return Returns the nome.
     */
    @Column(name = "DT_FIM")
    @Type(type = "bancosys.tec.persist.hibernate.type.DateType")
    public Date getDataFim() {
        return this.dataFim;
    }

    public void setDataFim(Date dataFim) {
        this.dataFim = dataFim;
    }

    /**
     * @return Returns the nome.
     */
    @Column(name = "NOME", length = 50)
    public String getNome() {
        return this.nome;
    }

    /**
     * Define o nome.
     * 
     * @param nome O nome a ser definido.
     */
    public void setNome(String nome) {
        this.nome = nome;
    }
}
